package org.example.myleet.p1331;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[]".equals(JsonUtils.toJson(solution.arrayRankTransform(new int[]{}))));
        Assert.isTrue("[4,1,2,3]".equals(JsonUtils.toJson(solution.arrayRankTransform(new int[]{40,10,20,30}))));
        Assert.isTrue("[1,1,1]".equals(JsonUtils.toJson(solution.arrayRankTransform(new int[]{100,100,100}))));
        Assert.isTrue("[5,3,4,2,8,6,7,1,3]".equals(JsonUtils.toJson(solution.arrayRankTransform(new int[]{37,12,28,9,100,56,80,5,12}))));
    }
}
